Ext.BLANK_IMAGE_URL = '../ext-3.4/resources/images/default/s.gif';
Ext.Component.prototype.stateful = false;
Ext.state.Manager.setProvider(new Ext.state.CookieProvider({
	expires : new Date(new Date().getTime() + (1000 * 60 * 60 * 24 * 365))
})); // 设置过期时间，这里设置一年

Ext.ns('sys');

Ext.onReady(function() {
	Ext.QuickTips.init();

	var vp = new Ext.Viewport({
		layout : 'border',
		items : new sys.QueryConfigPanel({
			region : 'center'
		})
	});
});

sys.QueryConfigPanel = Ext.extend(Ext.Panel, {
	constructor : function(cfg) {
		Ext.apply(this, cfg || {});
		this.queryUnitPanel = new sys.QueryUnitPanel({
			region : 'center',
			queryConfigPanel : this
		});
		this.querySegmentPanel = new sys.QuerySegmentPanel({
			region : 'east',
			width : 500,
			queryConfigPanel : this
		});
		sys.QueryConfigPanel.superclass.constructor.call(this, {
			id : '_query_config_panel',
			layout : 'border',
			border : false,
			items : [ this.queryUnitPanel, this.querySegmentPanel ]

		});
	}
});
